package net.tycmc.cty.ctyms.timejob.iems.job;

import net.tycmc.cty.ctyms.timejob.iems.service.WeatherCatchService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class WeatherCatchJob extends QuartzJobBean {

	private WeatherCatchService weatherCatchService;
	
	/**
	 * @return the weatherCatchService
	 */
	public WeatherCatchService getWeatherCatchService() {
		return weatherCatchService;
	}



	/**
	 * @param weatherCatchService the weatherCatchService to set
	 */
	public void setWeatherCatchService(WeatherCatchService weatherCatchService) {
		this.weatherCatchService = weatherCatchService;
	}



	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		weatherCatchService.catchWeather();
	}

}
